//
//  CartCell.h
//  ZQLearn
//
//  Created by macfeel on 2019/5/15.
//  Copyright © 2019 macfeel. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CartModel.h"

NS_ASSUME_NONNULL_BEGIN

@class CartCell;
@protocol  CartCellDelegate<NSObject>

-(void)cartCell:(CartCell *)cell didCilckedTickButton:(BOOL )selected atIndexPath:(NSIndexPath *)indexPath;

-(void)cartCell:(CartCell *)cell didChangeGoodsNumber:(NSInteger)num andProductId:(NSInteger)productId atIndexPath:(NSIndexPath *)indexPath;

@end

@interface CartCell : UITableViewCell

@property (weak, nonatomic) IBOutlet UIButton *tickBtn;

@property (weak, nonatomic) IBOutlet UIImageView *headImg;


@property (weak, nonatomic) IBOutlet UILabel *nameLab;

@property (weak, nonatomic) IBOutlet UILabel *scoreLab;

@property (weak, nonatomic) IBOutlet UIButton *minusBtn;

@property (weak, nonatomic) IBOutlet UILabel *numberLab;

@property (weak, nonatomic) IBOutlet UIButton *plusBtn;

@property(nonatomic,copy)NSString *productId;

@property(nonatomic,strong)NSIndexPath *indexPath;

@property(nonatomic,weak)id<CartCellDelegate>delegate;

@property(nonatomic,strong)CartModel *model;

@property (nonatomic, assign) BOOL isEdit;// cell 分为两种页面，编辑态和非编辑态



@end

NS_ASSUME_NONNULL_END
